13 #define FOR(i,j,n) for (int i=j;i<n;++i)
14 #define FORI(i,j,n) for (int i=j;i<=n;++i)
15 #define FORN(i,n) FOR(i,0,n)
17 #define foreach(i, c) for( __typeof( (c).begin() ) i = (c).begin(); i != (c).end(); ++i )
18 #define CPRESENT(container, element) (find(ALL(container),element) != container.end())
19 #define MIN(a,b) (a < b ? a : b)
20 #define MAX(a,b) (a > b ? a : b)
21 #define ALL(x) x.begin(), x.end()
34 memset(t
,0,sizeof(t
));
35 for (int i
=0;i
<9;i
+=2){
36 for (int j
=0;j
<(i
/2)+1;j
++){
41 for (int i
=2;i
<9;i
+=2){
42 for (int j
=1,num
=0;num
<i
/2;num
++,j
+=2){
43 t
[i
][j
]=(t
[i
-2][j
-1]-t
[i
][j
-1]-t
[i
][j
+1])/2;
47 for (int i
=1;i
<9;i
+=2){
48 for (int j
=0;j
<=i
;j
++){
49 t
[i
][j
]=t
[i
+1][j
]+t
[i
+1][j
+1];